home *** CD-ROM | disk | FTP | other *** search
- /* :-> h.text
- *
- <Description>
- *
- * This file may be freely copied and used, but NOT modified.
- *
- * (C) 1989 WayForward Technologies
- * ---Tiggr & Graham
- */
-
-
- /* Initialise the buffer, window and task.
- *
- * nc : number of columns (on the screen and the buffer).
- * nr : number of screen rows.
- * bufr : number of rows in the buffer.
- * title: title of the window (truncated to 12 chars) and of the task.
- * inc : initial number of columns visible.
- * inr : initial number of rows visible.
- *
- * Returns : 0 if no error
- */
- extern int
- text_init (int nc, int nr, int bufr, char *title, int inc, int inr, int intch);
-
-
- /* Force Wimp_CloseDown to be called (id est sign off as a task).
- */
- extern void
- text_closedown (void);
-
-
- /* Put a character with the specified attributes at the specified position.
- *
- * ch : character to be put.
- * attr: attributes of the character (none of which are defined yet. Use 0).
- * col : column where to put the character
- * row : row where to put it.
- *
- * Returns: 0 if no error
- */
- extern int
- text_putch (char ch, int attr, int col, int row);
-
-
- /* Handle window events
- *
- * immediate_exit: if !=0 then in case of a close_window event or a quit
- * message, it will call exit () immediately. If ==0 it will
- * return with a result code (ONLY ONCE).
- *
- * Returns: 1 : some parts of the window are invalid, and text_update ()
- * should be called.
- * 0 : normal
- * -1 : program should exit.
- */
- extern int
- text_poll (int immediate_exit);
-
-
- /* Get a key from the 256 character type-ahead buffer
- *
- * Returns: -1 : no character available
- * !-1 : character value
- */
- extern int
- text_inkey (void);
-
-
- /* Controls updating the screen after calls to text_putch (). The latter does
- * not update information in the window. text_update () should be called to
- * do that. The reason for this is, that text_update can be called less
- * frequently to speed things up (enormously).
- */
- extern void
- text_update (void);
-
-
- /* Scroll the screen
- */
- extern void
- text_scroll (void);
-
-
- /* Force the screen to become visible, even in case the user is watching some
- * part of the history buffer.
- */
- extern void text_open_screen (void);
-